package com.dozen.share;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import java.util.List;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

/**
 * @author: Dozen
 * @description:
 * @time: 2022/3/28
 */
public class SharesAdapter extends BaseQuickAdapter<ShareBean, BaseViewHolder> {

    public SharesAdapter(@Nullable List<ShareBean> data) {
        super(R.layout.adapter_shares_view, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, ShareBean bean) {

        baseViewHolder.setText(R.id.shares_time, bean.getTimes());
        baseViewHolder.setText(R.id.shares_name, bean.getName());

    }
}
